<template>
  <div class="detail-box">
    <div class="detail-title">
      <el-divider content-position="left" ><span class="title">{{title}}</span></el-divider>
      <div class="line"></div>
    </div>
    <div>
      <slot></slot>
    </div>
  </div>
</template>
<script lang="ts">
import { defineComponent } from "vue";

export default defineComponent({
  props: {
    title: {
      type: String,
      default: '基本信息'
    }
  },
})
</script>
<style lang="scss" scoped>
.detail-box{
  margin-bottom: 20px;
    .detail-title{
      display: flex;
      align-items: center;
      .title{
        font-size: 20px;
      }
      .line{
        flex: 1;
        width: 100%;
        height: 1px;
        background:#807AED;
        margin-left: 20px;

      }
    }
  }
</style>